package com.offcn.mapper;

import com.offcn.entity.Trolley;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CardMapper {
    //根据用户ID 与商品的id 进行查询
      Trolley selectByUidAndId(@Param("id") Integer id,@Param("uid") Integer uid );
      //插入
        int  intoTroller(@Param("uid") Integer uid, @Param("id") Integer id,
                         @Param("number") int number, @Param("orders_number") String orders_number);
        //根据ID来进行修改
      int  updateTroller(@Param("uid") Integer uid, @Param("number") int number,@Param("id") Integer id);

    //根据ID进行查询
    List<Trolley> selectAll(@Param("uid") Integer uid);


       //删除购物车中某商品记录
       int deleteT(@Param("id") Integer id,@Param("uid") Integer uid );
}
